<template>
  <div class="info">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="会员管理" name="1">
        <vip-manage v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="操作记录" name="2">
        <vip-operate v-if="activeName === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import VipManage from './components/viper/vipmanage'
import VipOperate from './components/viper/vipoperate'
export default {
  components: {
    VipManage,
    VipOperate
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.info {
  padding: 0 20px;
}
</style>

